<!DOCTYPE html>
<html>
<head>
    <title>
        {%block title%}{{PageTitle}} - {{setting['sitename']}}{%endblock%}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <base href="{{setting['userurl']}}"/>
    <link rel="icon" href="/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" type="text/css" id="theme" href="/css/theme-default.css"/>
</head>
<body>
<!-- START PAGE CONTAINER -->
<div class="page-container">

    <!-- START PAGE SIDEBAR -->
    <div class="page-sidebar">
        <!-- START X-NAVIGATION -->
        <ul class="x-navigation">
            <li class="xn-logo">
                <a href="/admin">{{setting['sitename']}}</a>
                <a href="#" class="x-navigation-control"></a>
            </li>
            <li class="xn-title">导航</li>
            <li
                {% if controller==
            "index" %} class="active"{% endif %}>
            <a href="/admin"><span class="fa fa-desktop"></span> <span class="xn-text">首页</span></a>
            </li>

            {% if Cpermission['app'] is defined %}
            <li
                {% if controller==
            "app" %} class="active"{% endif %}>
            <a href="/admin/app"><span class="fa fa-cog"></span> <span class="xn-text">应用中心</span></a>
            </li>
            {% endif %}
            {% if Cpermission['myinfo'] is defined %}
            <li
                {% if controller==
            "myinfo" %} class="active"{% endif %}>
            <a href="/admin/myinfo"><span class="fa fa-cog"></span> <span class="xn-text">个人信息</span></a>
            </li>
            {% endif %}

            {% if Cpermission['config'] is defined %}
            <li
                {% if controller==
            "config" %} class="active"{% endif %}>
            <a href="/admin/config/wx"><span class="fa fa-cog"></span> <span class="xn-text">公共配置</span></a>
            </li>
            {% endif %}

            {% if cu['role_id']==3%}
            {% for userapp in appuser %}
            {%if userapp.getApp().del==0%}
            <li
                {% if controller== userapp.getApp().action %} class="active" {% endif %}>
                {%if userapp.getApp().out==0 %}
                <a href="/admin/app{{userapp.getApp().action}}/">
                    {%else%}
                    <a href="/admin/appmain/index/{{userapp.getApp().action}}/">
                    {%endif%}

                    <span class="fa fa-th-large"></span><span class="xn-text">{{userapp.getApp().appname}}</span></a>
            </li>
            {%endif%}
            {% endfor %}
            {% endif%}
        </ul>
        <!-- END X-NAVIGATION -->
    </div>
    <!-- END PAGE SIDEBAR -->

    <!-- PAGE CONTENT -->
    <div class="page-content">

        <!-- START X-NAVIGATION VERTICAL -->
        <ul class="x-navigation x-navigation-horizontal x-navigation-panel">
            <!-- TOGGLE NAVIGATION -->
            <li class="xn-icon-button">
                <a href="#" class="x-navigation-minimize"><span class="fa fa-dedent"></span></a>
            </li>

            <li class="xn-icon-button pull-right last" title="退出">
                <a href="javascript:;"><span class="fa fa-power-off"></span></a>
                <ul class="xn-drop-left animated zoomIn">
                    <li><a href="javascript:;" class="mb-control" data-box="#mb-signout"><span
                                class="fa fa-sign-out"></span>
                            退出</a></li>
                </ul>
            </li>
<!--            <li class="xn-icon-button pull-right" title="积分">-->
<!--                <a href="/admin/myinfo/recharge/"><span class="glyphicon glyphicon-usd" id="credits"></span></a>-->
<!--            </li>-->
            <li class="contact_us pull-right">
                <a href="javascript:;"><span>联系电话：0571-87062862</span></a>
            </li>
            <!-- END POWER OFF -->

        </ul>
        <!-- END X-NAVIGATION VERTICAL -->

        <!-- START BREADCRUMB -->
        <ul class="breadcrumb">
            <li><a href="/admin">首页</a></li>
            <li class="active">{{PageTitle}}</li>
        </ul>
        <!-- END BREADCRUMB -->

        <!-- PAGE CONTENT WRAPPER -->
        <div class="page-content-wrap" style="position: relative;">
            {{ content() }}
            <?php $this->flashSession->output() ?>
            {% block content %}{% endblock %}
        </div>
        <!-- END PAGE CONTENT WRAPPER -->
    </div>
    <!-- END PAGE CONTENT -->
</div>
<!-- END PAGE CONTAINER -->

<!-- MESSAGE BOX-->
<div class="message-box animated fadeIn" data-sound="alert" id="mb-signout">
    <div class="mb-container">
        <div class="mb-middle">
            <div class="mb-title"><span class="fa fa-sign-out"></span> 退出 <strong>登陆状态</strong> ?</div>
            <div class="mb-content">
                <p>您确定要退出么?</p>

                <p>如您还有其他事情尚未处理,请选择否!</p>
            </div>
            <div class="mb-footer">
                <div class="pull-right">
                    <a href="/admin/sign/logout" class="btn btn-success btn-lg">是</a>
                    <button class="btn btn-default btn-lg mb-control-close">否</button>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END MESSAGE BOX-->
{%block div%}{%endblock%}
<!-- START PRELOADS -->
<audio id="audio-alert" src="/audio/alert.mp3" preload="auto"></audio>
<audio id="audio-fail" src="/audio/fail.mp3" preload="auto"></audio>
<!-- END PRELOADS -->

<!-- START SCRIPTS -->
<!-- START PLUGINS -->
<script type="text/javascript" src="/js/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/js/plugins/jquery/jquery-ui.min.js"></script>
<script type="text/javascript" src="/js/plugins/bootstrap/bootstrap.min.js"></script>
<!-- END PLUGINS -->

<!-- START THIS PAGE PLUGINS-->
<script type='text/javascript' src='/js/plugins/icheck/icheck.min.js'></script>
<script type="text/javascript" src="/js/plugins/mcustomscrollbar/jquery.mCustomScrollbar.min.js"></script>
<script type="text/javascript" src="/js/plugins/scrolltotop/scrolltopcontrol.js"></script>

<script type="text/javascript" src="/js/plugins/morris/raphael-min.js"></script>
<script type="text/javascript" src="/js/plugins/morris/morris.min.js"></script>
<script type="text/javascript" src="/js/plugins/rickshaw/d3.v3.js"></script>
<script type="text/javascript" src="/js/plugins/rickshaw/rickshaw.min.js"></script>
<script type='text/javascript' src='/js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js'></script>
<script type='text/javascript' src='/js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js'></script>
<script type='text/javascript' src='/js/plugins/bootstrap/bootstrap-datepicker.js'></script>
<script type="text/javascript" src="/js/plugins/owl/owl.carousel.min.js"></script>

<script type="text/javascript" src="/js/plugins/moment.min.js"></script>
<script type="text/javascript" src="/js/plugins/daterangepicker/daterangepicker.js"></script>
<!-- END THIS PAGE PLUGINS-->
<script type='text/javascript' src='/js/plugins/noty/jquery.noty.js'></script>
<script type='text/javascript' src='/js/plugins/noty/layouts/topCenter.js'></script>
<script type='text/javascript' src='/js/plugins/noty/layouts/topLeft.js'></script>
<script type='text/javascript' src='/js/plugins/noty/layouts/topRight.js'></script>
<script type='text/javascript' src='/js/plugins/noty/themes/default.js'></script>
<script type="text/javascript" src="/js/plugins/bootstrap/bootstrap-select.js"></script>
<!-- START TEMPLATE -->

<script type="text/javascript" src="/js/plugins/bootstrap/bootstrap-timepicker.min.js"></script>
<script type="text/javascript" src="/js/plugins/bootstrap/bootstrap-file-input.js"></script>
<script type="text/javascript" src="/js/plugins/tagsinput/jquery.tagsinput.min.js"></script>

<script type="text/javascript" src="/js/plugins.js"></script>
<script type="text/javascript" src="/js/actions.js"></script>
<script type="text/javascript" src="/js/jquery.reveal.js"></script>
<!-- END TEMPLATE -->
<style type="text/css">
    .app-wrap {
        padding: 5px 0px;
        border-bottom: 1px solid #E5E5E5;
    }

    .buy-wrap {
        padding-top: 30px;
    }

    .price, .buy {
        text-align: center;
    }

    .app-img {
        overflow: hidden;
        max-height: 120px;
    }

    .app-img img {
        width: 80%;
        height: auto;
    }
</style>
{% block end %}{%endblock%}
<!-- END SCRIPTS -->
</body>
</html>